package com.campus_information_portal.service;

import com.campus_information_portal.entity.Material;
import com.campus_information_portal.util.Message;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author 20155873 张联富
 * @Description $Description$
 * @methodName $methodName$
 * @date $date$ $time$
 * @return $returns$
 */
@Service
    public interface MaterialService {
    List<Material> findAllMaterial(int material_state );//查询未冻结的全部资
     /**
          * @Description 资料上传
          * @author 20155878 鄢前州
          * @methodName addMaterial
          * @returnType boolean
          * @create 9:37 2018/5/3
          **/
     public Message addMaterial(Material material);
    /**
     * @Description 更新下载次数
     * @author 20155878 鄢前州
     * @methodName updatematerial_uptime
     * @returnType boolean
     * @create 10:40 2018/5/3
     **/
    public Message updatematerial_uptime(Material material);
    /**
     * @Description 根据资料id查询下载次数
     * @author 20155878 鄢前州
     * @methodName querymaterial_downtimesBymaterial_id
     * @returnType int
     * @create 11:45 2018/5/3
     **/
    public Integer querymaterial_downtimesBymaterialName(String materialName);
    /**
     * @Method_name: querymaterial_type_idsBymaterial_typeName
     * @Describe: 通过文件类型名查抄文件类型ID
     * @Author: 20155878 鄢前州
     * @Creat_date: 19:02
     * @Creat_time: 2018/5/31
     **/
    public String querymaterial_type_idsBymaterial_typeName(String materialTpyeName);
    /**
     * @Describe: 联合老师表资料表和资料类型表进行链表查询
     * @Author: 20155878 鄢前州
     * @Creat_date: 22:23
     * @Creat_time: 2018/6/1
     **/
    public Message queryAllMaterial();
    /**
     * @Method_name: addMaterialType
     * @Describe: 添加资料类型
     * @Author: 20155878 鄢前州
     * @Creat_date: 23:50
     * @Creat_time: 2018/6/1
     **/
    public Message addMaterialType(String materialTypeName);
}
